package consumer;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.luo.service.TestService;

public class ConsumerServiceTest {

	public static void main(String[] args) {
		 ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
	                new String[] { "spring.xml" });
		 context.start();
		 TestService testService = (TestService)context.getBean("testService");
		 System.out.println(testService.getName());
		 try {
	            System.in.read();
	        } catch (IOException e) {       
	            e.printStackTrace();
	        } 
	}

}
